﻿<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta charset="utf-8">
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="manager index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <title>后台管理程序</title>
	
	<%include("baseCss.html"){};%>
	
    <style>
    	body{background-color: #e4e6e9;}
    </style>

  </head>
  
  <body class="no-skin">
    <div id="navbar" class="navbar navbar-default">
    	<div class="navbar-container" id="navbar-container">
    		<div class="navbar-header pull-left">
    			<a href="#" class="navbar-brand">
    				<small>
    					<i class="fa fa-leaf"></i>{webname}网站管理平台
    				</small>
    			</a>
    		</div>
    		
    		<div class="navbar-buttons navbar-header pull-right">
    			<ul class="nav ace-nav">
    				<li class="grey">
    					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
    						<i class="ace-icon fa fa-tasks"></i>
    						<span class="badge badge-grey">4</span>
    					</a>
    				</li>
    				<li class="purple">
    					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
    						<i class="ace-icon fa fa-bell"></i>
    						<span class="badge badge-important">4</span>
    					</a>
    				</li>
    				<li class="green">
    					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
    						<i class="ace-icon fa fa-envelope"></i>
    						<span class="badge badge-success">4</span>
    					</a>
    				</li>
    				<li class="light-blue">
    					<a data-toggle="dropdown" class="dropdown-toggle" href="#">
    						<img class="nav-user-photo" src="${request.contextPath}/static/skins/manage/img/avatars/avatar2.png" alt="user-photo"/>
    						<span class="user-info">
    							<small>Welcome,</small>${session.username!'未登录'}
    						</span>
    						<i class="ace-icon fa fa-caret-down"></i>
    					</a>
    					<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="ace-icon fa fa-cog"></i>
										Settings
									</a>
								</li>

								<li>
									<a href="profile.html">
										<i class="ace-icon fa fa-user"></i>
										Profile
									</a>
								</li>
								<%if(session.logining!=null && session.logining==1){%>
								<li class="divider"></li>

								<li>
									<a href="#" id="logout" data-url="logout.jspx?returnUrl=/index.jspx">
										<i class="ace-icon fa fa-power-off"></i>
										退出登录
									</a>
								</li>
								<%}%>
							</ul>
    				</li>
    			</ul>
    		</div>
    	</div>
    </div>
    <!-- end nav bar -->
    <!-- start container -->
    <div id="main-container" class="main-container">
    	<!-- sidebar -->
    	<div id="sidebar" class="sidebar responsive">
    		<ul class="nav nav-list" style="top:0">
			<li class="">
			   <a href="#" class="dropdown-toggle">
                  <i class="menu-icon fa fa-paint-brush"></i>
                  <span class="menu-text"> 新闻管理 </span><b class="arrow fa fa-angle-down"></b>
               </a>
               <b class="arrow"></b>
               <ul class="submenu">
               	 <li>
               	 	<a href="news/preAdd.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>新闻添加</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="news/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>新闻列表</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="news_channel/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>新闻频道管理</span>
               	 	</a>
               	 </li>
             </ul>
			</li>
			
			<li class="">
			   <a href="#" class="dropdown-toggle">
                  <i class="menu-icon fa fa-print"></i>
                  <span class="menu-text"> 文章管理 </span><b class="arrow fa fa-angle-down"></b>
               </a>
               <b class="arrow"></b>
               <ul class="submenu">
               	 <li>
               	 	<a href="article/preAdd.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>文章添加</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="article/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>文章列表</span>
               	 	</a>
               	 </li>
             </ul>
			</li>

            <li class="">
			   <a href="#" class="dropdown-toggle">
                  <i class="menu-icon fa fa-trophy"></i>
                  <span class="menu-text"> 案例(解决方案)管理 </span><b class="arrow fa fa-angle-down"></b>
               </a>
               <b class="arrow"></b>
               <ul class="submenu">
               	 <li>
               	 	<a href="case/preAdd.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>案例添加</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="case/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>案例列表</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="case_category/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>案例分类列表</span>
               	 	</a>
               	 </li>
             </ul>
			</li>

			<li class="">
			   <a href="#" class="dropdown-toggle">
                  <i class="menu-icon fa fa-trophy"></i>
                  <span class="menu-text"> 产品管理 </span><b class="arrow fa fa-angle-down"></b>
               </a>
               <b class="arrow"></b>
               <ul class="submenu">
               	 <li>
               	 	<a href="product/preAdd.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>产品添加</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="product/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>产品列表</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="product_category/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>产品分类列表</span>
               	 	</a>
               	 </li>
               	 <li>
               	 	<a href="product_brand/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>产品品牌列表</span>
               	 	</a>
               	 </li>
             </ul>
			</li>
			<li class="">
			   <a href="channel/list.jspx" target="rightContent">
                  <i class="menu-icon fa fa-tachometer"></i>
                  <span class="menu-text"> 栏目 </span>
               </a>
			</li>
			<li class="hsub">
			  <a href="#" class="dropdown-toggle">
			     <i	class="menu-icon fa fa-desktop"></i>
			     <span class="menu-text"> 站点设置 </span> <b class="arrow fa fa-angle-down"></b>
			  </a>
			  <b class="arrow"></b>
			  <ul class="submenu">
			  	<li>
               	 	<a href="config/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>基本设置</span>
               	 	</a>
               	 </li>
			  	<li>
               	 	<a href="photo_link/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>图片导航设置</span>
               	 	</a>
               	 </li>
			  </ul>
			</li>
			<li class="hsub">
			  <a href="#" class="dropdown-toggle">
			     <i	class="menu-icon fa fa-desktop"></i>
			     <span class="menu-text"> 用户管理 </span> <b class="arrow fa fa-angle-down"></b>
			  </a>
			  <b class="arrow"></b>
			  <ul class="submenu">
			  	<li>
               	 	<a href="user/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>用户管理</span>
               	 	</a>
               	 </li>
			  	<li>
               	 	<a href="role/list.jspx" target="rightContent">
               	 	<i class="ace-icon fa fa-caret-right"></i>
               	 	<span>角色管理</span>
               	 	</a>
               	 </li>
			  </ul>
			</li>
			<li class="">
			   <a href="#">
                  <i class="menu-icon fa fa-puzzle-piece"></i>
                  <span class="menu-text"> 模板 </span>
               </a>
			</li>
			<li class="">
			   <a href="resource/list.jspx" target="rightContent">
                  <i class="menu-icon fa fa-book"></i>
                  <span class="menu-text"> 资源 </span>
               </a>
			</li>
			<li class="">
			   <a href="#">
                  <i class="menu-icon fa fa-tachometer"></i>
                  <span class="menu-text"> 标签向导 </span>
               </a>
			</li>
			<li class="">
			   <a href="#">
                  <i class="menu-icon fa fa-tachometer"></i>
                  <span class="menu-text"> FTP管理 </span>
               </a>
			</li>
			
			<li class="">
			   <a href="#">
                  <i class="menu-icon fa fa-tachometer"></i>
                  <span class="menu-text"> 公司信息管理 </span>
               </a>
			</li>
		</ul>
    	</div>
    	<!-- end sidebar -->
    	<!-- righe main content -->
    	<div class="main-content">
    		<iframe name="rightContent" id="rightContent" style="border:0; width:100%; min-height:580px;" ></iframe>
    		<div id="footer" class="row-fluid">
    	Copyright &copy; 2014-2016 {webname} - Power By
        </div>
    	</div>
    </div>
    <!-- end container -->
    <%include("baseJs.html"){};%>
    <link rel="stylesheet" href="${request.contextPath}/static/assets/jshow/css/bootstrap-modal.css">
    <link rel="stylesheet" href="${request.contextPath}/static/assets/jshow/css/joywindow.bootstrap.css">
    
    <script src="${request.contextPath}/static/assets/jshow/js/bootstrap-modal.js"></script>
	<script src="${request.contextPath}/static/assets/jshow/js/bootstrap-modalmanager.js"></script> 
	<script src="${request.contextPath}/static/assets/jshow/js/modal.manager.plugin1.0.js"></script>
	<script src="${request.contextPath}/static/assets/jshow/js/jshow.utils.js"></script>
    <script>
    $(document).ready(function(){
    	$("#menu a").click(function(){
    		var menuArray = $("#menu a");
    		menuArray.each(function(index,element){
    			$(element).parent().removeClass("active");
    		});
    		$(this).parent().addClass("active");
    	});
    	
    	$("#logout").on("click",function(){
    		var url = $(this).attr("data-url");
    		if(confirm("确定要退出后台管理吗？")){
    			location.href = url;
    		}
    	});

        initFrames("leftMenu");
        initFrames("rightContent");
    });
</script>
    <script>
    function initFrames(frameId){
        $("#"+frameId).on("load",function(){
            var frameHeight = $(this).contents().find("body").height();
            $(this).height(frameHeight<580 ? 580:frameHeight);
        });
    }
    </script>
  </body>
</html>
